package com.ycxy.sh.transaction.service;

import com.ycxy.sh.transaction.dao.dto.SoldRecordAddNewDTO;
import com.ycxy.sh.transaction.dao.entity.SoldRecord;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hlt
 * @since 2019-12-21
 */
@Transactional
public interface CommoditySoldrecordService {

    /**插入售出记录*/
    void addNewSoldRecord(SoldRecordAddNewDTO soldRecordAddNewDTO);
    /**删除售出记录*/
    void deleteSoldRecord(Long id);
    /**分页展示个人的售出记录*/
    List<SoldRecord> pageSoldrecord(Integer page, Integer count, Long userid);
    /**查看售出记录总数*/
    Integer selectSoldCount(Long userid);
}
